package lessson;

import lesson.Caldemo;
import static junit.framework.Assert.*;
import org.junit.Test;

public class testCaldemo {

	@Test
	public void testJutestDemo() {	
		assertEquals(Caldemo.CalintFix(" ( 8 + 10 ) / 2 + 1 - 23 "), -13);
		assertEquals(Caldemo.CalintFix("9 + ( 3 - 1 ) * 3 + 10 / 2") , 20);
		assertEquals(Caldemo.CalintFix("8 + ( 10 / 2 + 1 ) * 2"), 20);

	}
}
